const { createProxyMiddleware } = require('http-proxy-middleware');

module.exports = function (app) {
  app.use(
    createProxyMiddleware('/partstore', {
      target: 'http://localhost:8080',
      changeOrigin: true,
    }),

  );
  app.use(
    createProxyMiddleware('/part', {
      target: 'http://localhost:8080',
      changeOrigin: true,
    }),

  );
  app.use(
    createProxyMiddleware('/product', {
      target: 'http://localhost:8080',
      changeOrigin: true,
    }),

  );
  app.use(
    createProxyMiddleware('/com', {
      target: 'http://localhost:8080',
      changeOrigin: true,
    }),

  );
};